/* 
 * File:   MenuGame.h
 * Author: agu
 *
 * Created on 16 de junio de 2014, 17:20
 */

#ifndef MENUGAME_H
#define	MENUGAME_H

#include <gtkmm-3.0/gtkmm.h>
#include "client_CampaignList.h"
#include "client_MenuNewGame.h"
#include "client_socket.h"

class MenuGame : public Gtk::Window {
public:
    MenuGame();
    void run();
    void setWindowsBack(Gtk::Window *windowBack);
    void setSocket(Client_socket s);   
    ~MenuGame();
private:
    void loadWidgets();
    void connectWidgets();
    void close();
    void back();
    void newGame();
    void join();

    Glib::RefPtr<Gtk::Builder> builder;
    Gtk::Window* window,*windowsBack;
    Gtk::Button *buttonNew, *buttonBack, *buttonJoin;
    CampaignList campaignList;
    MenuNewGame menuNewGame;
    Client_socket socket;
};

#endif	/* MENUGAME_H */

